﻿using System;

namespace Cpu6502.Opcodes
{
    /// <summary>
    /// SEI - Sets the Interupt Flag
    /// </summary>
    class SEI : Opcode
    {
        public SEI()
        {
            this.CpuCycles = 2;
            this.AddressType = CPU.AddressType.Implied;
        }

        public override void Execute()
        {
            CPU.Registers.P.I = true;
        }
    }
}
